Skip to main content
Version: Upcoming

StockDetail

V8 Message Definiton

This table contains a ticker level summary of some earnings related information. This information is also available in other records but is collected here for convenience.

METADATA

AttributeValue
Topic3225-market-statistics
MLink TokenSRMLinkAnalytics
ProductSRAnalytics
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
ticker_atenum - AssetTypePRI'None'
ticker_tsenum - TickerSrcPRI'None'
ticker_tkVARCHAR(12)PRI''
eMoveFLOAT0implied earnings move from LiveSurfaceTermeMove
eMoveHistFLOAT0average historical trail 8 quarter earnings move from LiveSurfaceTermeMoveHist
nextEarnDaysINT0estimated days to next earnings event resets to next event immediately after earnings passes
nearEarnDaysINT0estimated days to next earnings event resets to next event 2 days after the most recent event has passed
nextEarnTimeVARCHAR(6)''estimated time of day of next earnings event
nextEarnDateDATE'1900-01-01'estimated next earnings date note that implied adjustements to this day are available in LiveSurfaceTerm
isNextEarnDateConfirmedenum - YesNo'None'next date has been confirmed usually by the company
nextDDivAmtFLOAT0next dividend payment amount
nextDDivDaysINT0next dividend payment date
numOptionsINT0number of listed options on this underlier if any
timestampDATETIME(6)'1900-01-01 00:00:00.000000'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
ticker_tk1
ticker_at2
ticker_ts3

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRAnalytics`.`MsgStockDetail` (
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '',
`eMove` FLOAT NOT NULL DEFAULT 0 COMMENT 'implied earnings move (from LiveSurfaceTerm.eMove)',
`eMoveHist` FLOAT NOT NULL DEFAULT 0 COMMENT 'average historical (trail 8 quarter) earnings move (from LiveSurfaceTerm.eMoveHist)',
`nextEarnDays` INT NOT NULL DEFAULT 0 COMMENT 'estimated days to next earnings event (resets to next event immediately after earnings passes)',
`nearEarnDays` INT NOT NULL DEFAULT 0 COMMENT 'estimated days to next earnings event (resets to next event 2 days after the most recent event has passed)',
`nextEarnTime` VARCHAR(6) NOT NULL DEFAULT '' COMMENT 'estimated time of day of next earnings event',
`nextEarnDate` DATE NOT NULL DEFAULT '1900-01-01' COMMENT 'estimated next earnings date (note that implied adjustements to this day are available in LiveSurfaceTerm)',
`isNextEarnDateConfirmed` ENUM('None','Yes','No') NOT NULL DEFAULT 'None' COMMENT 'next date has been confirmed (usually by the company)',
`nextDDivAmt` FLOAT NOT NULL DEFAULT 0 COMMENT 'next dividend payment amount',
`nextDDivDays` INT NOT NULL DEFAULT 0 COMMENT 'next dividend payment date',
`numOptions` INT NOT NULL DEFAULT 0 COMMENT 'number of listed options on this underlier (if any)',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
PRIMARY KEY USING HASH (`ticker_tk`,`ticker_at`,`ticker_ts`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='This table contains a ticker level summary of some earnings related information. This information is also available in other records but is collected here for convenience.';

SELECT TABLE EXAMPLE QUERY

SELECT
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`eMove`,
`eMoveHist`,
`nextEarnDays`,
`nearEarnDays`,
`nextEarnTime`,
`nextEarnDate`,
`isNextEarnDateConfirmed`,
`nextDDivAmt`,
`nextDDivDays`,
`numOptions`,
`timestamp`
FROM `SRAnalytics`.`MsgStockDetail`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`ticker_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`ticker_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk';

Doc Columns Query

SELECT * FROM SRAnalytics.doccolumns WHERE TABLE_NAME='StockDetail' ORDER BY ordinal_position ASC;